﻿using BTS.Helpers;
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static BTS.Models.LoginWindowModel;

namespace BTS.ViewModels
{
    public partial class MainWindowViewModel:ObservableObject
    {
        [ObservableProperty]
        private string userName;
        [ObservableProperty]
        private string deviceType;
        [ObservableProperty]
        private string userAuth;

        public User UserInfo = new User();//登录账户信息
        public MainWindowViewModel(User userInfo)
        {
            this.UserInfo = userInfo;
            userName = "登录用户:" + userInfo.AccountName;
            deviceType = "设备型号:" + userInfo.DeviceType;
            userAuth = "用户类型:" + userInfo.AccountAuth;

            //if (GlobalData.Config.Skin == SkinType.Dark)
            //    IsChecked = true;
            //else
            //    IsChecked = false;



        }
    }
}
